package org.site.eclipse;

public class EclipseFacet
{
  protected static String nl;
  public static synchronized EclipseFacet create(String lineSeparator)
  {
    nl = lineSeparator;
    EclipseFacet result = new EclipseFacet();
    nl = null;
    return result;
  }

  public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
  protected final String TEXT_1 = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + NL + "<faceted-project>" + NL + "  <installed facet=\"java\" version=\"1.7\"/>" + NL + "  <installed facet=\"jst.web\" version=\"2.5\"/>" + NL + "  <installed facet=\"wst.jsdt.web\" version=\"1.0\"/>" + NL + "</faceted-project>";
  protected final String TEXT_2 = NL;

  public String generate(Object argument)
  {
    final StringBuffer stringBuffer = new StringBuffer();
    stringBuffer.append(TEXT_1);
    stringBuffer.append(TEXT_2);
    return stringBuffer.toString();
  }
}
